package cn.kgc.jdktest.demo8;

import java.util.function.Predicate;

/**
 * @Author:yaozhaobao
 * @Description:TODO
 * @version:1.0
 */
public class Test3 {

    public static void main(String[] args) {
        fun((s)->s.contains("h")&&s.contains("s"));
    }


    public static void fun(Predicate<String> predicate){
        boolean helloworld = predicate.test("helloworld");
        System.out.println(helloworld);
    }
}
